fastCSharp.LoadViewType(diantou.topic=function(Value)
	{
	fastCSharp.Copy(this,Value);
	this.Path={
		Index:this.GetIndex(),
		Focus:'/topic/focus.html#!topicId='+this.Id,
		Favorite:'/topic/favorite.html#!topicId='+this.Id,
		Log:'/topic/log.html#!topicId='+this.Id,
		Hot:'/topic/hot.html#!topicId='+this.Id,
		BestAnswer:'/topic/bestAnswer.html#!topicId='+this.Id,
		Friend:'/topic/friend.html#!topicId='+this.Id,
		ProblemList:'/onlineJudge/topicProblem.html#!topicId='+this.Id,
		EnterpriseProblemList:'/enterprise/topicProblem.html#!topicId='+this.Id
		};
	this.OnCopyView();
	});
diantou.topic.prototype={
GetIndex:function()
	{
	if(this.Name)
		{
		var Code=this.Name.charCodeAt(0);
		return '/topic/#!='+(Code>=0x31&&Code<=0x39?'_':'')+this.Name.replace(/[\u0100-\uffff]/g,function(Char){return '&#'+Char.charCodeAt(0)+';';});
		}
	return '/topic/index.html#!topicId='+this.Id;
	},
OnCopyView:function()
	{
	if(this.Icon)	this.Icon.Set('topic',this);
	},
MyAnswerPath:function()
	{
	return '/topic/userAnswer.html#!topicId='+this.Id+'&userId='+fastCSharp.PageView.SkinValue.SkinValue.currentUser.Id;
	}
		};

fastCSharp.LoadViewType(diantou.userTopic=function(Value)
	{
	fastCSharp.Copy(this,Value);
	});